<template>
  <div class="goodsdesc-container">
    <h3>{{ goodinfos[0].title }}</h3>
    <hr />
    <div class="content" v-html="goodinfos[0].content"></div>
  </div>
</template>
<script>
import { goodsdetail } from "../../../static/api.js";
export default {
  data() {
    return {
      id: this.$route.params.id,
      goodinfos: [{}],
    };
  },
  async created() {
    this.goodinfos = await goodsdetail(this.id);
    console.log(this.goodinfos);
  },
};
</script>
<style lang="scss">
.goodsdesc-container {
  padding: 4px;
  margin-bottom: 51px;
  h3 {
    font-size: 16px;
    color: #226aff;
    text-align: center;
    margin: 15px 0;
  }
  .content {
    text-align: left;
    img {
      width: 100%;
      height: auto;
    }
    table{
        td{
            img{
                width: auto;
               height: 100%;
            }
        }
    }
  }
}
</style>
